package com.msb.sometest;

/**
 * @Auther： WangLei
 * @Date： 2021/8/18-08-18-22:57
 * @Description: com.msb.sometest
 * @version: 1.0
 */
enum EnumTest {
    ONE(1),TWO(2),THREE(3);

    private int code;

    EnumTest(int code){
        this.code = code;
    }

    public int getCode(){
        return this.code;
    }
}

 class ETest{
     public static void main(String[] args) {
         for(EnumTest e:EnumTest.values()){
            switch (e){
                case ONE:
                    System.out.println("ONE " + e.getCode());
                    System.out.println("0-0-0-");
                    int a = 10; a += e.getCode();
                    System.out.println(a);
                    break;
                case TWO:
                    System.out.println("TWO " + e.getCode());   break;
                case THREE:
                    System.out.println("THREE " + e.getCode()); break;
             default:
                 System.out.println("....");
                 break;
            }
         }
     }
}
